package com.mzj.saas.mservice.bill.repository;

import com.mzj.saas.mservice.bill.entity.HouseExpenseWater;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

public interface HouseExpenseWaterRepository extends JpaRepository<HouseExpenseWater,Long>,JpaSpecificationExecutor<HouseExpenseWater> {

    HouseExpenseWater findByRuleId(String ruleId);

    @Transactional
    void deleteByRuleId(String ruleId);

}
